import request from '@/utils/request'
// 请求验证码
export const captchatypelogin = (data) => {
  return request({
    url: `/captcha`
  })
}
// 验证用户信息是否正确
export const login = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
// 上传图片接口
export const uploads = (data) => {
  return request({
    url: '/uploads',
    method: 'post',
    data
  })
}
// 提交注册用户信息
export const register = (data) => {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}
// 获取短信验证码
export const sendsms = (data) => {
  return request({
    url: '/sendsms',
    method: 'post',
    data
  })
}
